package com.yc.sole.framework.redis;


import com.yc.sole.framework.redis.enums.CacheTime;

import java.lang.annotation.*;

/**
 * 防重复提交注解
 *
 * @author yizuomin
 * @date 2022/12/2 16:22
 **/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RepeatSubmitCheck {

    /**
     * 过期时间 默认10秒
     *
     * @return
     */
    CacheTime expireTime() default CacheTime.TEN_SECONDS;
}
